package com.example.springbootsenior.AOP.buy.service.impl;

import com.example.springbootsenior.AOP.buy.service.IBuy;
import org.springframework.stereotype.Component;

/**
 * 功能描述:
 *
 * @author: 李明杰
 * @date: 2021/11/25 13:51
 */
@Component
public class Girl implements IBuy {

    @Override
    public String buy(double price) {
        System.out.printf("女孩花了%s元买了一件漂亮的衣服\n", price);
        return "衣服";
    }

    @Override
    public String buy() {
        System.out.println("女孩买了一件漂亮的衣服");
        return "衣服";
    }
}
